<?php
    /**
     * Created by PhpStorm.
     * User: mybook-lhp
     * Date: 18/7/7
     * Time: 下午8:13
     */

    namespace app\payment\logic;


    class PayBase
    {

        const Body = '充值';

        const Wechatpay_Notify_Url = '/payment/callback/wechat';
        const WechatPay            = 'WechatPay';//(Wechat Common Gateway) 微信支付通用网关
        const WechatPay_App        = 'WechatPay_App';// (Wechat App Gateway) 微信APP支付网关
        const WechatPay_Native     = 'WechatPay_Native';//(Wechat Native Gateway) 微信原生扫码支付支付网关
        const WechatPay_Js         = 'WechatPay_Js';//(Wechat Js API/MP Gateway) 微信网页、公众号、小程序支付网关
        const WechatPay_Pos        = 'WechatPay_Pos';//(Wechat Micro/POS Gateway) 微信刷卡支付网关
        const WechatPay_Mweb       = 'WechatPay_Mweb';//(Wechat H5 Gateway) 微信H5支付网关
        const Alipay_Notify_Url    = '/payment/callback/alipay';

        const PAY_TYPE_NOT_PAY    = 0;
        const PAY_TYPE_ALIPAY     = 1;
        const PAY_TYPE_WXPAY      = 2;
        const PAY_TYPE_WALLET_PAY = 3;
        const PAY_TYPE_POINT      = 5;

        static $PAY_TYPE = [
            self::PAY_TYPE_NOT_PAY    => '未支付',
            self::PAY_TYPE_ALIPAY     => '支付宝',
            self::PAY_TYPE_WXPAY      => '微信',
            self::PAY_TYPE_WALLET_PAY => '钱包',
            self::PAY_TYPE_POINT      => '积分',
        ];

    }